package org.wk.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.wk.core.db.dao.GenericJpaRepositoryFactoryBean;



@ComponentScan(basePackages = {"org.wk.core","org.wk.user"})
@EntityScan(basePackages = { "org.wk.core","org.wk.user"})
@EnableJpaRepositories(basePackages = {"org.wk.core","org.wk.user"}, repositoryFactoryBeanClass = GenericJpaRepositoryFactoryBean.class)
@PropertySource("classpath:application.properties")
@EnableTransactionManagement(proxyTargetClass = true)
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class, ErrorMvcAutoConfiguration.class })
public class App {

	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}
